package com.jushu.storbox.callback;

public abstract interface ICallback {
	public abstract void onStart();

	public abstract void onFailure(Throwable t, int statusCode);

	public abstract void onSuccess();

	/**
	 * @param currentProgress current progress</br>
	 * @param currentSize	current processed size</br>
	 * @param currentProcSize  {@link ICallback#currentProcSize} <font color="red">current download buffer size</font>
	 */
	public abstract void onProgress(int currentProgress, long currentSize, long currentProcSize);

	public abstract void onStop();
	
	public abstract void onCanceled();
	
	public abstract void onDettach();
}
